package cn.francis.config;

import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
import org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

/**
 * Name: AgroWebMvcConfiguration
 * Package: cn.francis.config
 * Date: 2024/10/23 - 17:17
 * Description:
 *
 * @author Junhui Zhang
 * @version v1.0
 */

@Configuration
public class AgroWebMvcConfiguration implements WebMvcConfigurer {
    @Override
    public void addResourceHandlers(ResourceHandlerRegistry registry) {
        registry.addResourceHandler("/backend/**").addResourceLocations("classpath:/backend/");
    }

}
